﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PIT.Labs.ProjectRepository.Owl2DotNet.Rdf
{
    class RdfValue : IValue
    {
        public RdfValue(string value, IDataType type)
        {
            if (type.Validate(value))
            {
                this.Value = value;
                this.DataType = type;
            }
            else
            {
                //XXX: Throw an Exception...   
            }
        }

        public string Value
        {
            get;
            set;
        }

        public IDataType DataType
        {
            get;
            private set;
        }
    }
}
